{extend name="admin/layout" /}
{block name="main"}
<div class="row">
    <div class="col-md-12">
        <div class="widget">
            <header class="widget-header">
                <h4 class="widget-title">ＱＱ列表
                </h4>
            </header><!-- .widget-header -->
            <hr class="widget-separator">
            <div class="widget-body">
                <form method="post">
                    <input type="hidden" name="action" value="search">
                    <div class="input-group xs-mb-15">
                        <input type="text" placeholder="请输入要搜索的QQ！" name="s"
                               class="form-control text-center"
                               required>
                        <span class="input-group-btn">
                        <button type="submit" class="btn btn-primary">立即搜索</button>
                        </span>
                    </div>
                </form>
            </div>
            <hr class="widget-separator">
            <div class="widget-body table-responsive">
                <table class="table table-hover table-striped">
                    <thead>
                    <tr>
                        <th>QID</th>
                        <th width="100" class="hidden-xs text-center">头像</th>
                        <th class="text-center">QQ</th>
                        <th class="text-center">所属UID</th>
                        <th class="text-center">添加时间</th>
                        <th class="text-center">状态</th>
                        <th class="text-center">操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    {volist name="$qqList" id="row"}
                    <tr>
                        <td>#{$row.qid}</td>
                        <td class="hidden-xs text-center">
                            <img src="//q4.qlogo.cn/headimg_dl?dst_uin={$row.uin}&amp;spec=100"
                                 class="img-circle circle-border m-b-md" style="height: 18px;">
                        </td>
                        <td class="text-center">{$row.uin}</td>
                        <td class="text-center">{$row.uid}</td>
                        <td class="text-center">{$row.addtime}</td>
                        <td class="text-center">
                            {:getQqzt($row.zt)}
                        </td>
                        <td class="text-center">
                            <a href="{:url('index/qqinfo',['uin'=>$row.uin])}" class="btn-xs btn-info">代挂详情</a>
                            <a href="?action=del&qid={$row.qid}" class="btn-xs btn-danger"
                               onclick="return confirm('确认删除？');">删除</a>
                        </td>
                    </tr>
                    {/volist}
                    </tbody>
                </table>
                <div class="text-center">{$pageList->showPage()}</div>
            </div>
        </div>
    </div>
</div>
{/block}